<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美策平台</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <link rel="stylesheet" type="text/css" href="../datepicker/jquery-ui.min.css">
    <link type="text/css" rel="stylesheet" href="../css/app.css"/>
    <link type="text/css" rel="stylesheet" href="../css/loginMobile.css"/>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script src="../datepicker/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/pc/js/all.js"></script>
</head>
<body id="Ibody">
<!--
	制作：陈道祥
	页面：工厂环境
	更新：九哥
-->





<!-----------工厂环境页面---------->
<div class="stepTwo" id="IstepNineFactoryEnvirenment">
    <div class="companyHeadPanel">
        <div class="companyHeadOne">您工厂的环境</div>
    </div>
    <div class="companyInfoSpace"></div>
    <div class="modelPanel"></div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传总经理照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="managerFile"
                   onchange="setFormFacEnv(1)">
            <button type="submit" class="bossFileUp" id="submit-1">上传</button>
        </form>
        <div class="bossFileImgDiv" id="managerShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传厂长办公室照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="facManagerFile"
                   onchange="setFormFacEnv(2)">
            <button type="submit" class="bossFileUp" id="submit-2">上传</button>
        </form>
        <div class="bossFileImgDiv" id="facManagerShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传财务室照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="financeFile"
                   onchange="setFormFacEnv(3)">
            <button type="submit" class="bossFileUp" id="submit-3">上传</button>
        </form>
        <div class="bossFileImgDiv" id="financeShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传门卫照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="guardFile" onchange="setFormFacEnv(4)">
            <button type="submit" class="bossFileUp" id="submit-4">上传</button>
        </form>
        <div class="bossFileImgDiv" id="guardShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传厂房外形图</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="shapeFile" onchange="setFormFacEnv(5)">
            <button type="submit" class="bossFileUp" id="submit-5">上传</button>
        </form>
        <div class="bossFileImgDiv" id="shapeShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传充绒房照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="rawFile" onchange="setFormFacEnv(6)">
            <button type="submit" class="bossFileUp" id="submit-6">上传</button>
        </form>
        <div class="bossFileImgDiv" id="rawShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传技术部照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="techFile" onchange="setFormFacEnv(7)">
            <button type="submit" class="bossFileUp" id="submit-7">上传</button>
        </form>
        <div class="bossFileImgDiv" id="techShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传缝制车间照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="workFile" onchange="setFormFacEnv(8)">
            <button type="submit" class="bossFileUp" id="submit-8">上传</button>
        </form>
        <div class="bossFileImgDiv" id="workShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传后道车间照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="backFile" onchange="setFormFacEnv(9)">
            <button type="submit" class="bossFileUp" id="submit-9">上传</button>
        </form>
        <div class="bossFileImgDiv" id="backShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传裁剪车间照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="cutFile" onchange="setFormFacEnv(10)">
            <button type="submit" class="bossFileUp" id="submit-10">上传</button>
        </form>
        <div class="bossFileImgDiv" id="cutShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传工厂宿舍照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="dormFile" onchange="setFormFacEnv(11)">
            <button type="submit" class="bossFileUp" id="submit-11">上传</button>
        </form>
        <div class="bossFileImgDiv" id="dormShow" style="display:none;"></div>
    </div>
    <div class="bossFileDiv">
        <div class="bossFileText">请上传样衣间照片</div>
        <form action="" enctype="multipart/form-data" method="POST">
            <span class="param"></span>
            <input type="file" class="bossFile" name="sampleFile"
                   onchange="setFormFacEnv(12)">
            <button type="submit" class="bossFileUp" id="submit-12">上传</button>
        </form>
        <div class="bossFileImgDiv" id="sampleShow" style="display:none;"></div>
    </div>
    <div class="companyInfoSpace"></div>
    <div class="companyRemark">备注：方便你的客户找到你、招聘的员工找到你、了解你、信任你，图片尽量上传完善。让客户多了解自己，容易接单成功。细节决定成败，图片清晰。</div>
    <div class="nextStepDiv">
        <!--<span class="prevStep" id="facEnvPre">上一步</span>-->
        <!--<span class="nextStep" id="facEnvNext">提交</span>-->
        <span class="prevStep" onclick="history.go(-1)">返回</span>
        <span class="nextStep" onclick="setSave()">保存</span>
    </div>
</div>
<span id="count"></span>
<!-----------工厂环境页面---------->





<!-----------提示信息---------->
<div id="errMsg"></div>
<!-----------提示信息---------->
</body>
<script type="text/javascript" src="../js/loginFac.js"></script>
<script>
    (function(){
        getFacEnvFiles();
    })();
    /**
     * 设置保存
     * */
    function setSave(){
        judgeFull()
        window.location.href = '/h5/login/facList.html';
    }

    function judgeFull() { // 判断是否填写信息
        var judgeFullArray = []
        var facEnv = ''
        $('.bossFileImgDiv').each(function () {
            if ($(this).children().length > 0) {
                judgeFullArray.push(0)
            }
        })

        if (judgeFullArray.length > 0) {
            facEnv = true
        } else {
            facEnv = false
        }
        cacheSet('facEnv', facEnv)
    }
</script>
</html>